package com.yuexiang.melodyhub.common.constant.UsualConstant;

public class BizCodeConstant {

    public static final class Code {

        public static final Integer SUCCESS_CODE = 200;

        public static final Integer BAD_REQUEST = 400;

        public static final Integer UNAUTHORIZED_CODE = 401;

        public static final Integer FORBIDDEN_CODE = 403;

        public static final Integer FAILURE_CODE = 500;

        public static final Integer FREQUENT_VISITS_CODE = 10000;

        // 自定义响应码
        public static final Integer REQUEST_ARGUMENT_NOT_VALID_CODE = 8001;

    }

    public static final class Msg {

        public static final String SUCCESS_MSG = "操作成功";

        public static final String FAILURE_MSG = "操作失败";

        public static final String UNAUTHORIZED_MSG = "请先登录";

        public static final String FORBIDDEN_MSG = "权限不足，禁止访问";

        public static final String FREQUENT_VISITS_MSG = "频繁访问";

        public static final String FEIGN_SERVER_NOT_USE_MSG = "服务不可用";

        public static final String TOKEN_IS_INVALID_MSG = "token 无效或过期";

        public static final String CODE_IS_INVALID = "验证码错误";

        // 账号
        public static final String EMAIL_IS_INVALID = "邮箱不合法";

        public static final String PASSWORD_IS_INVALID = "密码不合法";

        public static final String REPEAT_PASSWORD_IS_INVALID = "密码不一致";

        public static final String U_OR_P_IS_ERROR = "账号或密码错误";

        public static final String U_IS_BANDED = "账号禁用";

        public static final String U_IS_PENDING = "账号审核";

        public static final String U_IS_EXIST = "邮箱已注册";

        public static final String U_NAME_IS_EXIST = "用户名已存在或为空";

        public static final String OLD_PASS_IS_INCORRECT = "旧密码不正确";

    }

}
